#include "Utils.h"

string intToStr(int value)
{
	char buffer[32];
	sprintf(buffer,"%d",value);
	return buffer;
}

string intToStr(int64_t value)
{
	char buffer[64];
	sprintf(buffer,"%lld",value);
	return buffer;
}

string doubleToStr(double value)
{
	char buffer[64];
	sprintf(buffer,"%lf",value);
	return buffer;
}

string quoteStr(string value)
{
	string s;

	for (string::iterator it = value.begin(); it != value.end(); it++)
	{
		char c = *it;
		s += c;
		if (c == '\'')
			s += c;
	}

	return s;
}
